﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ThouShaltNotBrick.Models;
using Microsoft.Xna.Framework.Content.Pipeline;
using System.IO;
using System.Xml;
using System.Xml.Linq;
using ThouShaltNotBrick.DataAccess;

namespace ThouShaltNotBrick.PipelineExtension
{
    [ContentProcessor(DisplayName = "Campaigns Content Processor")]
    public sealed class CampaignsContentProcessor : ContentProcessor<CampaignsSource, CampaignsData>
    {
        #region Overriden Methods
        public override CampaignsData Process(CampaignsSource pInput, ContentProcessorContext pContext)
        {
            return CampaignsXmlReader.Parse(pInput.Source);
        }
        #endregion
    }
}